package LessonWork;

public class SeqListTest {
    public static void main(String[] args) {
        SeqList<String> SeqList = new SeqList<>();

        SeqList.insert("3");
        SeqList.insert("4");
        SeqList.insert("35");
        SeqList.insert("32");
        SeqList.insert("33");
        SeqList.insert("33");
        SeqList.insert("31");
        SeqList.insert("30");
        SeqList.insert("32");
        SeqList.insert("33");
        SeqList.insert("33");
        SeqList.insert("33");

        System.out.println("使用replaceFirst方法前的顺序表"+SeqList);
        SeqList.replaceFirst("4","99");
        System.out.println("使用replaceFirst方法替换“4”为“99”后的顺序表"+SeqList);

        System.out.println("使用removeAll方法前的顺序表"+SeqList);
        SeqList.removeAll("33");
        System.out.println("使用removeAll方法移除“33”元素后的顺序表"+SeqList);

        System.out.println("使用searchLast查找最后一次出现“32”元素的位置是"+SeqList.searchLast("32"));
    }
}